<?php
namespace Home\Model;
use Think\Model\ViewModel;

class AccountBrandViewModel extends ViewModel
{
    public $viewFields = array(

        'agent_account' => array(
           'agent_id','audit_status','record_time','pay_brand','amount',
            '_type' => 'LEFT'
        ),
        'brand' => array(
            'b_name','id',
            '_on' => 'brand.id = agent_account.pay_brand' ,
            '_type' => 'RIGHT'
        )
    );
}